from datetime import datetime

from pydantic import BaseModel
from typing import Optional, List

class CarTrackModel(BaseModel):
    """
    车辆轨迹对应pydantic模型
    """
    id: Optional[int]
    car_id: Optional[str]
    record_time: Optional[str]
    position: Optional[str]
    device_id: Optional[str]
    create_time:Optional[datetime]
    create_by:Optional[str]
    update_time: Optional[datetime]
    update_by: Optional[str]
    type: Optional[str]
